<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>算术运算符</title>
</head>

<body>
  <script>
    // 当我们算数运算符技术失败会显示NaN 但不会报错
    console.log('拉拉' - 2)

    // 算数运算符
    console.log(1 + 2 * 3 / 2)   //4
    let num = 10
    console.log(num + 10)   //20
    console.log(num + num)  //20

    // 取mo   取余数--用于判断数是否被整除

    console.log(4 % 2)  //0
    console.log(4 % 3)   //余数1
    console.log('拉拉' * 2)
    console.log('拉拉' + 2)  //啦啦2


  </script>
</body>

</html>